<template>
  <div></div>
</template>
<script>
import Oidc from "oidc-client";

const mgr = new Oidc.UserManager();

export default {
  name: "SilentRenew",
  data() {
    return {
      mgr: mgr
    };
  },
  created() {
    this.mgr.signinSilentCallback()
      .then(user => {
        this.$store.dispatch('auth/addToken', user)
      })
      .catch(err => {
        console.log(err);
      });
  }
};
</script>
